import Taro from '@tarojs/taro'
import { View, Navigator } from '@tarojs/components'
import { useReady } from '@tarojs/taro'
import GlobalData from '../../../global'
import './index.scss'

export default () => {
    useReady(() => {
        setTimeout(() => {
            if(!GlobalData.isLogin) {
                Taro.redirectTo({url : '/merchantClient/pages/login/index'})
            }
        }, 500)
    })


    return <>
        <View className='p-l-r'>
            <View className='module'>
                <Navigator className='item' url='/merchantClient/pages/device/index'>TEST</Navigator>
                <Navigator className='item' url='/merchantClient/pages/strategy/index'>策略管理</Navigator>
                <Navigator className='item'>订单管理</Navigator>
            </View>
        </View>
    </>
}